home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / DTS Japan-Sample Code / AppleEvent•MacApp3.0b1•7.0 / Taro.r < prev    next >
Encoding:
Text File  |  1992-02-05  |  2.3 KB  |  117 lines  |  [TEXT/MPS ]

  1. // Copyright 1991 (C) Apple Computer. All Rights Reserved.
  2.  
  3. #ifndef __TYPES.R__
  4. #include "Types.r"
  5. #endif
  6.  
  7. #ifndef __MacAppTypes__
  8. #include "MacAppTypes.r"
  9. #endif
  10.  
  11. #ifndef __ViewTypes__
  12. #include "ViewTypes.r"
  13. #endif
  14.  
  15. #if qDebug
  16. include "Debug.rsrc";
  17. #endif
  18.  
  19. include "MacApp.rsrc";
  20. include "Printing.rsrc";
  21.  
  22. include "Taro" 'CODE';
  23.  
  24. include "Taro.extra.rsrc";            //   ICON 1000, plus others   
  25. include "Views.extra.rsrc";        //   view 1000 
  26.  
  27. include "Defaults.rsrc"    'STR#' (kDefaultCredits);    // default credits
  28. include "Defaults.rsrc"    'vers' (2);        // Overall package
  29.  
  30. #define    mFile        2
  31. #define    mPlayer    3
  32. #define    mSound    4
  33.  
  34. #define    cAddRemote        1000
  35. #define    cRemoveRemote    1001
  36. #define    cAddLocal        1002
  37. #define    cRemoveLocal    1003
  38. #define    cSound            2000
  39.  
  40. //======================================================================================
  41. include "Defaults.rsrc"    'CMNU' (mApple);                // default Apple menus
  42.  
  43. resource 'SIZE' (-1) {
  44.     1,
  45.     acceptSuspendResumeEvents,
  46.     reserved,
  47.     canBackground,
  48.     multiFinderAware,
  49.     backgroundAndForeground,
  50.     dontGetFrontClicks,
  51.     acceptAppDiedEvents,
  52.     is32BitCompatible,
  53.     isHighLevelEventAware,
  54.     localAndRemoteHLEvents,
  55.     notStationeryAware,
  56.     dontUseTextEditServices,
  57.     reserved,
  58.     reserved,
  59.     reserved,
  60.     534 * 1024,
  61.     246 * 1024
  62. };
  63.  
  64.  
  65. resource 'CMNU' (mFile) {
  66.     mFile,
  67.     textMenuProc,
  68.     0x7FFFFBBB,
  69.     enabled,
  70.     "File",
  71.      {
  72.         "New", noIcon, "N", noMark, plain, cNew;
  73.         "-", noIcon, noKey, noMark, plain, nocommand;
  74.         "Close", noIcon, "W", noMark, plain, cClose;
  75.         "-", noIcon, noKey, noMark, plain, nocommand;
  76.         "Page Setup…", noIcon, noKey, noMark, plain, cPageSetup;
  77.         "Print One", noIcon, "P", noMark, plain, cPrintOne;
  78.         "Print…", noIcon, noKey, noMark, plain, cPrint;
  79.         "-", noIcon, noKey, noMark, plain, nocommand;
  80.         "Quit", noIcon, "Q", noMark, plain, cQuit;
  81.     }
  82. };
  83.  
  84. resource 'CMNU' (mPlayer, "Player") {
  85.     mPlayer,
  86.     textMenuProc,
  87.     0x7FFFFFFF,
  88.     enabled,
  89.     "Player",
  90.      {
  91.         "Add remote…", noIcon, "R", noMark, plain, cAddRemote;
  92.         "Remove remote…", noIcon, noKey, noMark, plain, cRemoveRemote;
  93.         "Add local…", noIcon, "L", noMark, plain, cAddLocal;
  94.         "Remove local…", noIcon, noKey, noMark, plain, cRemoveLocal;
  95.     }
  96. };
  97.  
  98. resource 'CMNU' (mSound, "Sound") {
  99.     mSound,
  100.     textMenuProc,
  101.     0x7FFFFFFF,
  102.     enabled,
  103.     "Sound",
  104.     {
  105.         "Sound Off", noIcon, "S", noMark, plain, cSound;
  106.     }
  107. };
  108.  
  109. resource 'MBAR' (kMBarDisplayed,
  110. #if qNames
  111. "Taro",
  112. #endif
  113.     purgeable) {
  114.     {mApple; mFile; mPlayer; mSound; }
  115. };
  116.  
  117.